import request from '../utils/request'

// 获取token
export const loginApi = (data: any) => {
  return request({
    url: '/api/user/login',
    method: 'post',
    data: data,
  })
}

// 获取登录信息
export const getUserInfo = () => {
  return request({
    url: `/system/user/getInfo`,
    method: 'get',
  })
}

// 退出登录
export const deleteInfoCode = () => {
  return request({
    url: `/auth/logout`,
    method: 'delete',
  })
}